home *** CD-ROM | disk | FTP | other *** search
/ com!online 2002 July / com!online0702.iso / software / livemotion / DATA1.CAB / Automation / Scripts / Time Align End to End.js < prev   
Encoding:
Text File  |  2002-05-13  |  2.3 KB  |  56 lines

  1. /***************************************************************
  2. ADOBE SYSTEMS INCORPORATED 
  3. Copyright 2002 Adobe Systems Incorporated 
  4. All Rights Reserved 
  5.  
  6. NOTICE:  Adobe permits you to use, modify, and distribute this 
  7. file in accordance with the terms of the Adobe license agreement 
  8. accompanying it.  If you have received this file from a source 
  9. other than Adobe, then your use, modification, or distribution
  10. of it requires the prior written permission of Adobe. 
  11. ***************************************************************/
  12. /***************************************************************
  13. Author: Mary Obelnicki
  14. ***************************************************************/
  15.  
  16. /***************************************************************
  17. alignEndToEnd is a utility that allow the user to align the lifetimes 
  18. of a selection of objects.  
  19.  
  20. To use this file, create some objects, give their lifetimes some 
  21. length and run the file. 
  22.  
  23. When aligning the lifetimes there are a number of options.  The user can
  24. control if the keyframes are moved with the lifetimes or left in place,
  25. if the first lifetime is aligned to the CIT, if the original start order
  26. of the lifetimes is maintained in the stagger, if the original order is
  27. not maintained, if the objects should be staggered from top down, or
  28. bottom up, the amount of overlap between the lifetimes and the type of
  29. transition between the lifetimes. 
  30. ***************************************************************/
  31.  
  32. #include "../../Include/shellSort.js"
  33. #include "../../Include/TimeAlignEndToEnd.js"
  34.  
  35. /***************************************************************
  36. To change the behavior of this script, make your changes below
  37. ***************************************************************/
  38.  
  39. var theSelection = application.currentComposition.selection; 
  40.  
  41. alignEndToEnd(    theSelection,     // the objects to align the lifetimes of
  42.                 true,             // move the keyframes with the lifetime? 
  43.                 false,             // place first lifetime at position of the cti?
  44.                 false,             // when staggering lifetimes, maintain original start order? 
  45.                 true,             // stagger lifetimes topdown in zorder (false is bottom up) 
  46.                 3,                 // frames of overlap between lifetimes
  47.                 2);             // transition style in frames of overlap
  48.  
  49. /*
  50. transitionStyle: 
  51. 0: no style
  52. 1: fade in
  53. 2: fade out
  54. 3: fade in and out
  55. */
  56.